package com.axcbd.demo.service;


import com.axcbd.demo.model.Camera;
import com.axcbd.demo.repository.CameraRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CameraService {

    @Autowired
    private CameraRepository cameraRepository;

    //添加摄像头
    public Camera AddCamera(Camera camera) {
        return cameraRepository.save(camera);
    }

}
